
export default (
  function request(method, url, params, data) {
    return new Promise(resolve => {
      this.axios({
        method,
        url,
        params,
        data,
        headers: {
          'authori-zation': `${localStorage.getItem("token")}`
        }
      }).then(res => resolve(res));
    })
  }
)

